package com.cib.process.util;

import com.google.gson.FieldNamingPolicy;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonUtil {
    public static final Gson GSON=new GsonBuilder().enableComplexMapKeySerialization()
            .serializeNulls().setDateFormat("yyyy-MM-dd HH:mm:ss").create();

    public static final Gson GSON_NO_NULL=new GsonBuilder().enableComplexMapKeySerialization().create();

    public static final Gson UNDERSCORS_GSON=new GsonBuilder().enableComplexMapKeySerialization()
            .serializeNulls().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).create();

    public static final Gson GSON_FORMAT_DATE=new GsonBuilder().enableComplexMapKeySerialization().serializeNulls()
            .setDateFormat("yyyy-MM-dd HH:mm:ss").create();

}
